﻿<phone:PhoneApplicationPage xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:local="clr-namespace:PokerFunUtilities"  
	x:Class="PokerFunUtilities.PokerClock" 
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="728"
	SupportedOrientations="Portrait"  Orientation="Portrait"
	shell:SystemTray.IsVisible="False"
	>

	<phone:PhoneApplicationPage.Resources>
		<local:DoubleToIntConverter x:Key="DoubleToIntConverter"/>
	</phone:PhoneApplicationPage.Resources>

	<!--Panorama-based applications should not show an ApplicationBar-->

	<phone:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</phone:PhoneApplicationPage.FontFamily>
	<phone:PhoneApplicationPage.FontSize>
		<StaticResource ResourceKey="PhoneFontSizeNormal"/>
	</phone:PhoneApplicationPage.FontSize>
	<phone:PhoneApplicationPage.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</phone:PhoneApplicationPage.Foreground>

	<!--LayoutRoot contains the root grid where all other page content is placed-->
	<Grid x:Name="LayoutRoot">
		<controls:Panorama Title="FunPokerUtilities- Poker Clock" FontSize="20">

			<!--Panorama item one-->
			<controls:PanoramaItem Header="Tournament info" DataContext="{Binding ConfigTournament, Source={StaticResource Locator}}">
				<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
					<TextBox Height="72" HorizontalAlignment="Left" Margin="6,51,0,0" x:Name="SmallBlind" VerticalAlignment="Top" Width="167" Text="{Binding Path=CurrentConfigurationTournament.SmallBlind,Mode=TwoWay}"   />
					<TextBox Height="72" HorizontalAlignment="Left" Margin="196,51,0,0" x:Name="BigBlind" VerticalAlignment="Top" Width="174" IsReadOnly="True" Text="{Binding Path=CurrentConfigurationTournament.BigBlind,Mode=OneWay}" />
					<TextBlock Height="30" HorizontalAlignment="Left" Margin="12,29,0,0" x:Name="txbSmallBlind" Text="SmallBlind" VerticalAlignment="Top" />
					<TextBlock Height="30" HorizontalAlignment="Left" Margin="196,29,0,0" x:Name="txbBigBlind" Text="BigBlind" VerticalAlignment="Top" />
					<TextBlock Height="30" HorizontalAlignment="Left" Margin="12,134,0,0" x:Name="txbPlayerNumber" Text="Player number" VerticalAlignment="Top"  />
					<TextBox Height="72" HorizontalAlignment="Left" Margin="13,161,0,0" x:Name="Player" VerticalAlignment="Top" Width="161" MaxLength="6" AcceptsReturn="True" Text="{Binding Path=CurrentConfigurationTournament.PlayerNumber,Mode=TwoWay}">
						<TextBox.InputScope>
							<InputScope />
						</TextBox.InputScope>
					</TextBox>
					<Slider Height="85" HorizontalAlignment="Left" Margin="8,274,0,0" x:Name="sldLevelTime" VerticalAlignment="Top" Width="203" Minimum="1" Maximum="60" LargeChange="5" SmallChange="1" Orientation="Horizontal" Value="{Binding Path=CurrentConfigurationTournament.LevelTime,Mode=TwoWay}" />
					<TextBlock Height="30" HorizontalAlignment="Left" Margin="16,240,0,0" x:Name="txbLevelTime" Text="Level Time" VerticalAlignment="Top" />
					<TextBlock Height="30" HorizontalAlignment="Left" Margin="242,276,0,0" x:Name="txbLevelTimeValue" VerticalAlignment="Top" Text="{Binding Value, Converter={StaticResource DoubleToIntConverter}, ElementName=sldLevelTime}" />
					<toolkit:ToggleSwitch Header="Ant" Height="116" HorizontalAlignment="Left" Margin="18,359,0,0" x:Name="tglAnt" VerticalAlignment="Top" Width="199" IsChecked="{Binding Path=CurrentConfigurationTournament.Ant,Mode=TwoWay}" />
					<TextBox Height="72" HorizontalAlignment="Left" Margin="238,384,0,0" x:Name="txtAntValue" Text="{Binding Path=CurrentConfigurationTournament.AntValue,Mode=TwoWay}" VerticalAlignment="Top" Width="133" IsEnabled="{Binding IsChecked, ElementName=tglAnt}" />
					<TextBlock Height="30" HorizontalAlignment="Left" Margin="231,353,0,0" x:Name="tglAntValue" Text="AntValue" VerticalAlignment="Top" />
					
				</Grid>
			</controls:PanoramaItem>
			<!--Panorama item two-->
			<controls:PanoramaItem Header="Tournament info">
				<Grid>
					<ListBox HorizontalAlignment="Left" Margin="2,3,0,0" Name="listBox1" VerticalAlignment="Top"  />
				</Grid>
			</controls:PanoramaItem>
			<!--Panorama item three-->
			<controls:PanoramaItem Header="Poker clock">
				<Grid>
					<Button Height="88"  HorizontalAlignment="Left" Margin="104,0,0,133" x:Name="btnStart" VerticalAlignment="Bottom" Width="130" Click="btnStart_Click" Foreground="{x:Null}" BorderBrush="{x:Null}">
						<Button.Background>
							<ImageBrush ImageSource="/PokerFunUtilities;component/Images/appbar.transport.play.rest.png" Stretch="UniformToFill" />
						</Button.Background>
					</Button>
					<TextBlock Height="106" HorizontalAlignment="Left" Margin="77,118,0,0" x:Name="tglTime" Text="" VerticalAlignment="Top" FontFamily="Segoe WP" FontSize="72" FontWeight="Bold" FontStyle="Italic" FontStretch="Normal" Foreground="#FFDA2792" OpacityMask="#FF926480" />
				</Grid>
			</controls:PanoramaItem>
			<!--Panorama item four-->
			<controls:PanoramaItem Header="Poker hand">
				<Grid>
<Image  HorizontalAlignment="Left"  x:Name="image1" Stretch="Fill" VerticalAlignment="Top"  Source="/PokerFunUtilities;component/poker_hand_rankings.png"    />
				</Grid>
			</controls:PanoramaItem>
			
		</controls:Panorama>
	</Grid>
	<!--<phone:PhoneApplicationPage.ApplicationBar >
		<shell:ApplicationBar IsVisible="False" IsMenuEnabled="True">
			<shell:ApplicationBarIconButton IconUri="../Images/appbar.check.rest" Text="Button 1"/>
			<shell:ApplicationBarIconButton IconUri="../Images/appbar.close.rest.png" Text="Button 2"/>
			<shell:ApplicationBar.MenuItems>
				<shell:ApplicationBarMenuItem Text="MenuItem 1"/>
				<shell:ApplicationBarMenuItem Text="MenuItem 2"/>
			</shell:ApplicationBar.MenuItems>
		</shell:ApplicationBar>
	</phone:PhoneApplicationPage.ApplicationBar>-->
	

</phone:PhoneApplicationPage>